package com.ruoyi.web.convert.terminalsFreezeXb;

import com.ruoyi.datastatistics.wxentity.WXTerminalsFreezeXb;
import com.ruoyi.web.entity.FreezeMonth2;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 系统报错 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface TerminalsFreezeXbConvert {

    TerminalsFreezeXbConvert INSTANCE = Mappers.getMapper(TerminalsFreezeXbConvert.class);

    @Mapping(source = "cumulative_flow", target = "ReadDosageN")
    @Mapping(source = "userName", target = "TerminalName")
    FreezeMonth2 convert(WXTerminalsFreezeXb bean);


    List<FreezeMonth2> convert(List<WXTerminalsFreezeXb> bean);

}
